
cmake_minimum_required(VERSION 3.4.1)

include_directories(include)
include_directories(${CMAKE_SOURCE_DIR}/soundtouch/${ANDROID_ABI}/include)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -L${CMAKE_SOURCE_DIR}/libs/${ANDROID_ABI}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -L${CMAKE_SOURCE_DIR}/soundtouch/${ANDROID_ABI}/lib")
message(-------------)
message(${CMAKE_SOURCE_DIR})
aux_source_directory(. SOURCE)

#aux_source_directory(./soundtouch/SoundTouch SOURCE1)
#add_library(
#        native-lib
#        SHARED
#        native-lib.cpp )
add_library(
        native-lib
        SHARED
        ${SOURCE}
#        ${SOURCE1}
)
find_library(
        log-lib
        log )
target_link_libraries(
        native-lib
        avcodec
        avdevice
        avfilter
        avformat
        avutil
        swresample
        swscale
        ${log-lib}
        OpenSLES
        android
        SoundTouch)